package main

import (
	"9-13yk/common/consul"
	"9-13yk/common/grpc"
	"9-13yk/common/model/mysql"
	"9-13yk/common/model/redis"
	"9-13yk/common/naocs"
	"9-13yk/service/config"
	"9-13yk/service/internal"
	grpc2 "google.golang.org/grpc"
)

func main() {
	config.Init()
	naocs.NaCos()
	consul.Consul()
	mysql.MysqlInit()
	redis.ExampleClient()
	nac := naocs.Config.Grpc
	grpc.RegisterGrpc(nac.Host, nac.Port, func(registrar grpc2.ServiceRegistrar) {
		internal.Register(registrar)
	})
}
